public class Ex5_17{
	public static void main(String[] args){
		printMatrix(3); 
	}

	public static void printMatrix(int n){
		for (int i = 0; i < n; i++){
			for (int j = 0; j < n; j++){
				int b = (int)(Math.random() * 2);
				System.out.printf("%2d", b);
			}
			System.out.printf("\n");
		}
	}
}
